package com.hxzy.service;

import com.hxzy.controller.seckill.req.SeckillReq;
import com.hxzy.entity.StoreCountVersion;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 11452
* @description 针对表【store_count_version(乐观锁)】的数据库操作Service
* @createDate 2023-09-11 16:35:44
*/
public interface StoreCountVersionService extends IService<StoreCountVersion> ,SeckillService{

    /**
     * 更新库存(乐观锁)
     * @param req
     * @param db
     * @return
     */
    boolean updateSckillVersion(SeckillReq req, StoreCountVersion db);
}
